/***
 * 项目所需接口
 */

import request  from '../utils/request'

// 获取验证码

export const getCaptcha = () => request({ url: '/getCaptcha' })

// 登录

export const userLoginApi = loginData => request({ url: '/user/login', method: 'POST', data: loginData })

// 删除用户

export const userDeleteOneApi = data => request({ url: '/user/deleteOne', method: 'POST',data})

// 删除内容

export const newsDeleteOneApi = data => request({ url: '/news/deleteOne', method: 'POST', data })

// 修改内容
export const NewsEditOneApi = data => request({ url: '/news/edit', method: 'POST', data, contentType: 'multipart/form-data', })

//删除comment
export const commentDeleteOneApi = data => request({ url: '/comment/deleteOne', method: 'POST', data })

// 修改内容
export const commentEditOneApi = data => request({ url: '/comment/shield', method: 'POST', data })
